home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #9 / Amiga Plus CD - 2004 - No. 09.iso / amigaplus / online / ibrowse_plugins / ib_desktop / desktop.readme
Text File  |  2004-08-03  |  4KB  |  117 lines

  1. ARexx script to save an image from IBrowse as a Dopus Magellan Desktop pattern.
  2. ==============================================================================
  3.  
  4.  
  5. Background
  6. ==========
  7.  
  8. Having seen some other browser being able to save an image as an OS desktop, I
  9. wondered if the same thing could be done for DOpus Magellan when using IBrowse.
  10.  
  11. The script presented here does just that. It is not ideal but does work.
  12.  
  13. It is based on the ARexx commands used in IBrowse 1.2 - 2.2 and any inceased
  14. Arexx functionality in IB2.3 and IB3.0 may be able to do the job better. The
  15. script currently relies on Ibrowse's GOTOURL command which has its drawbacks.
  16.  
  17. The script is intended to be run from IBs FAB Menu.
  18.  
  19.  
  20. Setting Up The Script
  21. =====================
  22.  
  23. It is required that the user defines the directory where they save images when
  24. using IBrowse. One line of the script needs editing to do this. The directory
  25. is defined in IBs Settings. This will default to the Download directory set in
  26. General -> directories. However, it can be over-riden by individual MIME types
  27. in General -> MIME Types. I save image data to Data:images but the user will
  28. need to substitute this line with their own path to image data.
  29.  
  30. Limitations of the Script
  31. =========================
  32.  
  33. The only way I could see (in IB2.2) to access the image was to use the command
  34. GOTOURL with its SAVE option enabled. There must be an easier way to access
  35. data already stored in IBs cache but I have not come across it - yet !
  36.  
  37. Using GOTOURL has a few drawbacks.
  38. 1. The download window opens.
  39. 2. If a file of the same name is already saved you have to click Overwrite.
  40. 3. IB looks for the file before accessing it from the cache, this can take time.
  41. 4. It is not possible to directly use a webpage background image.
  42. 5. The path of the image data needs to be defined.
  43.  
  44. A time delay has been introduced into the script to allow the image data to be
  45. copied to its download directory. Without this the script would set the DOpus
  46. background as blank.
  47.  
  48. GOTOURL cannot access the background image of a web page. A way around this is
  49. to use the standard FAB Menu option, View Background Separately, and then use
  50. the script on the click-able image.
  51.  
  52.  
  53. Adding the Script to  Browse
  54. ============================
  55.  
  56. Install the script by copying it to the Rexx drawer in your IBrowse directory.
  57.  
  58. Run IBrowse and select Settings from the Preferences menu.
  59. Double click GUI to pen the sub menu and click FAB Menus.
  60.  
  61. The script can be added to the Image section, and if the user wishes to the
  62. ImageLink section as well. If so this needs to be done twice as there is no way
  63. to copy a custom menu option to another location, only move it.
  64. A fix for IB3.0 perhaps ?
  65.  
  66. I added the script just under the Flush Image entry but location is at the
  67. discretion of the user.
  68.  
  69. Drag the Custom section to where you wish to add the new entry.
  70. Change the text that reads Custom to something more relevant, such as
  71. Save as Desktop Backdrop.
  72.  
  73. Set the Action cycle gadget to Arexx and use the ASL requester to select the
  74. script  Rexx/desktop.ibrx
  75.  
  76. Set the argument to %i which is the current image URL.
  77.  
  78. The FAB Menu is now set up for Images and clicking them will have the option to
  79. Save as a Desktop Backdrop shown.
  80.  
  81.  
  82. If the user wishes they can do the same for the ImageLink section of the menu.
  83. However, image links are usually not suitable as using for WB or DOpus
  84. backdrops but it does no harm to have the functionality.
  85.  
  86. Tip. By using the argument %l for an ImageLink menu it is possible to use an image
  87. linked to as a background image. Note this only works if the link points
  88. directly to an image file and not a page containing an image. I personally do
  89. not have this option set up.
  90.  
  91. After testing the FAB menus, remember to Save Settings when quitting IBrowse.
  92.  
  93.  
  94. The Future
  95. ==========
  96.  
  97. Using GOTOURL is not ideal.
  98. IB2.3 may have more Arexx commands and IB3.0 certainly will.
  99. Re-wrting the script to use images more transparently without download windows
  100. would be much better than the method used now.
  101. A way of using a background image directly is something to consider.
  102.  
  103.  
  104. Bill Eaves
  105. Feb 2003.
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.